#pragma once
#include "PrefixDefine.h"

class CEnum
{
public:
	CEnum();
	~CEnum();

	
public:
	bool appItem(char *pszName, int value);
	std::map<std::string, int> & getItems();
	bool getItemName(IN const int value, OUT std::string &strName);
	bool getItemValue(IN char *pszName, OUT int & value);
	bool select(char *pszName);
	bool select(int value);
	bool getCurSel(OUT int &value);
	bool getCurSel(OUT std::string &strName);

private:
	std::map<std::string, int> m_mapItems;
	int m_nCurSel;
};

